package com.example.jyjava.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Collect {
    private Integer id;
    private Integer userId;
    private Integer shopId;
    private String type;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private boolean deleteType;
    private Shop shop;
    private User user;
    private Lity lity;

    public Collect() {
    }

    public Collect(Integer id, Integer userId, Integer shopId, String type, Date creatTime, Date updateTime, boolean deleteType, Shop shop, User user, Lity lity) {
        this.id = id;
        this.userId = userId;
        this.shopId = shopId;
        this.type = type;
        this.creatTime = creatTime;
        this.updateTime = updateTime;
        this.deleteType = deleteType;
        this.shop = shop;
        this.user = user;
        this.lity = lity;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isDeleteType() {
        return deleteType;
    }

    public void setDeleteType(boolean deleteType) {
        this.deleteType = deleteType;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Lity getLity() {
        return lity;
    }

    public void setLity(Lity lity) {
        this.lity = lity;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "id=" + id +
                ", userId=" + userId +
                ", shopId=" + shopId +
                ", type='" + type + '\'' +
                ", creatTime=" + creatTime +
                ", updateTime=" + updateTime +
                ", deleteType=" + deleteType +
                ", shop=" + shop +
                ", user=" + user +
                ", lity=" + lity +
                '}';
    }
}
